package com.ruoyi.gp.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 审核业务对象 audit
 *
 * @author ruoyi
 * @date 2024-03-14
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class AuditBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 审核名称
     */
    @NotBlank(message = "审核名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String auditName;

    /**
     * 申请人
     */
    @NotBlank(message = "申请人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String applicants;

    /**
     * 审核人
     */
    @NotBlank(message = "审核人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String auditBy;

    /**
     * 审核状态 0:进行中,1:同意,2:已驳回
     */
    @NotBlank(message = "审核状态 0:进行中,1:同意,2:已驳回不能为空", groups = { AddGroup.class, EditGroup.class })
    private String auditStatus;

    /**
     * 审核备注
     */
    @NotBlank(message = "审核备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 审批原因
     */
    @NotBlank(message = "审批原因不能为空", groups = { AddGroup.class, EditGroup.class })
    private String reason;

    /**
     * 审核人id
     */
    @NotNull(message = "申请人id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long doctorId;


}
